package com.zhang.zhangapp.bean.user;

/**
 * Created by Administrator on 2018/4/25.
 */

public class BankCard {
    private String bankType;
    private String bankNo;

    public String getBankType() {
        return bankType;
    }

    public void setBankType(String bankType) {
        this.bankType = bankType;
    }

    public String getBankNo() {
        return bankNo;
    }

    public void setBankNo(String bankNo) {
        this.bankNo = bankNo;
    }

    public String getCode(){
        if(bankType!=null&&bankType.length()>=3)
            return bankType.substring(0,3);
        return "";
    }

    public String getType(){
        String type = "储蓄卡";
        if(bankType!=null&&bankType.length()>3){
            if("2".equals(bankType.substring(3,4)))
                type = "信用卡";
        }
        return type;
    }
}
